package tcu.ead2021.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalTimeSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@AllArgsConstructor
public class Invitation {
    private String id;
    private String destination;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDay;
    private Integer days;
    private Integer numOfPerson;
    private String comments;
}
